package com.orilore.gb.biz;

import java.util.List;

import org.apache.ibatis.session.SqlSession;

import com.orilore.gb.dao.LStudentDao;
import com.orilore.gb.entity.LStudent;
import com.orilore.gb.util.MySessionFactory;

public class LStudentBiz {
	
	private LStudentDao   dao;
	
	
	public List<LStudent> findAllStudents(){
		
		List<LStudent>  list = null;
		
		
		try {
			SqlSession  session = MySessionFactory.getSession();
		
			dao = session.getMapper(LStudentDao.class);
			
			
			list = dao.selectAllStudent2();
			
			MySessionFactory.closeSession(session);
			
			
		     
		
		
		
		} catch (Exception e) {
			// TODO Auto-generated catch block
			e.printStackTrace();
		}
		
		
		
		
		return list;
		
		
		
	}
	
	

}
